<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
  assembly="JSC.Portal.Web.App" namespace="JSC.Portal.Web.App.Modules.Articles.Entities">

	<class name="Comment" table="jscm_articlecomment" lazy="false">

		<!-- start Base on every entity -->
		<id name="Id" column="articlecommentid" unsaved-value="-1">
			<generator class="native">
				<param name="sequence">jscm_articlecomment_articlecommentid_seq</param>
			</generator>
		</id>
		<!-- end Base on every entity -->

		<property name="Name" column="name"/>
		<property name="CommentText" column="comment" type="StringClob" />
		<property name="Website" column="website"/>
		<property name="UserIp" column="ipaddress"/>
		<property name="CreatedOn" column="insertedtimestamp" type="DateTime"/>
		<property name="ModifiedOn" column="updatedtimestamp" type="DateTime"/>

		<many-to-one name="Article" class="Article" column="articleid" not-null="false" not-found="ignore"/>
	</class>
</hibernate-mapping>